﻿using System.Net;

namespace OpenPms.DataTest;

public class TestContext : DbContext
{

    public TestContext(DbContextOptions<TestContext> options) : base(options)
    {
    }
    public DbSet<TT> TTAS { get; set; }

    protected override void OnModelCreating(ModelBuilder modelBuilder)
    {
        modelBuilder.Entity<TT>().ToTable("TTAS", ii => ii.IsTemporal());
        base.OnModelCreating(modelBuilder);
    }


}
public class TT
{
    public int Id { get; set; }
    public string Name { get; set; } = default!;
    public DateOnly Date { get; set; }
    public TimeOnly Time { get; set; }
    public string[]? Roles { get; set; }
}